import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule} from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { LoginComponent } from './login/login.component';
import { HttpClientModule} from '@angular/common/http';
import { ReactiveFormsModule} from '@angular/forms';
import { AppRoutingDirective } from './app-routing.directive';
import { MasterHomeComponent } from './master-home/master-home.component';
import { ReaderHomeComponent } from './reader-home/reader-home.component';
import { AddComponent } from './add-book/add.component';
import { HttpModule} from '@angular/http';
import { ApiService} from './service/api.service';
import { CoreModule} from './core/core.module';
import {PeopleService} from './service/people.service';
import {BooksService} from './service/books.service';
import {RecordsService} from './service/records.service';
import { TestComponent } from './test/test.component';
import { SearchBookComponent } from './search-book/search-book.component';
import { RecordCheckComponent } from './record-check/record-check.component';
import { ReturnComponent} from './return/return.component';
import { BookDetailsComponent } from './book-details/book-details.component';
import { DeleteBookComponent } from './delete-book/delete-book.component';
import { NewReaderComponent } from './new-reader/new-reader.component';
import { SecondLendComponent } from './second-lend/second-lend.component';

@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    AppRoutingDirective,
    MasterHomeComponent,
    ReaderHomeComponent,
    AddComponent,
    TestComponent,
    SearchBookComponent,
    RecordCheckComponent,
    ReturnComponent,
    BookDetailsComponent,
    DeleteBookComponent,
    NewReaderComponent,
    SecondLendComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    ReactiveFormsModule,
    HttpModule,
    CoreModule,
    HttpClientModule,
  ],
  providers: [
    ApiService,
    PeopleService,
    BooksService,
    RecordsService,
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
